<script setup>
import {ref} from 'vue';
const props=defineProps({
    modelValue:{
        type:String,
        default:''
    },
    options:{
        type:Array,
        required:true
    }
});
const emit=defineEmits(['update:modelValue']);
</script>

<template>
    <el-select :model-value="modelValue" @update:model-value="emit('update:modelValue',$event)" style="width: 200px; margin-right: 10px;">
        <el-option
        v-for="item in options"
        :key="item.alias"
        :label="item.name"
        :value="item.name"
        ></el-option>
    </el-select>
</template>